import request from '@/utils/request'

// 查询人员项目配置信息列表
export function listDeclarer(query) {
  return request({
    url: '/work/declarer/list',
    method: 'get',
    params: query
  })
}

// 详情
export function getDeclarer(declarerId) {
  return request({
    url: '/work/declarer/info/' + declarerId,
    method: 'get'
  })
}

// 新增
export function addDeclarer(declarerIds) {
  return request({
    url: '/work/declarer/' + declarerIds,
    method: 'get'
  })
}

// 修改
export function updateDeclarer(data) {
  return request({
    url: '/work/declarer',
    method: 'put',
    data: data
  })
}

// 删除
export function delDeclarer(declarerId) {
  return request({
    url: '/work/declarer/' + declarerId,
    method: 'delete'
  })
}

// 选择框
export function optionSelect(query) {
  return request({
    url: '/work/declarer/optionselect',
    method: 'get',
    params: query
  })
}
